home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 6196 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.2 KB

  1. Path: news.magicnet.net!usenet
  2. From: gamecox@magicnet.net (Jody Hagins)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Pure Virtual Destructor Question
  5. Date: 11 Feb 1996 01:42:50 GMT
  6. Organization: MagicNet, Inc.
  7. Message-ID: <4fjhiq$8v0@comet2.magicnet.net>
  8. References: <4fas7a$7ns@comet2.magicnet.net> <4fg2oh$r02@cnn.exu.ericsson.se>
  9. NNTP-Posting-Host: pm1-04.magicnet.net
  10. X-Newsreader: WinVN 0.92.6+
  11.  
  12. In article <4fg2oh$r02@cnn.exu.ericsson.se>, ebumow@ebu.ericsson.com (Mickey Williams 66753) says:
  13. >
  14. >In article 7ns@comet2.magicnet.net,  gamecox@magicnet.magicnet.net (Jody Hagins) writes:
  15. >>Assume a class Foo s.t.
  16. >
  17. >[snipped - class with pure virtual dtor]
  18. >
  19. >>This is correct, and compiles fine.  However, I get a warning:
  20. >>"foo.h", : warning: please provide an out-of-line definition:  Foo::~Foo() {}; 
  21. >>hich is needed by derived classes
  22. >
  23. >It's just a warning. Your compiler is probably trying to tell
  24. >you that you waon't get any inline benifits from this dtor.
  25. >
  26. >>
  27. >>Even when I make it non inline (in foo.C) I still get it. 
  28. >
  29. >Get a better compiler. Your code is well-formed.
  30. >
  31. >Hope this helps
  32.  
  33. Thanks.  Unfortunately, I can't get rid of my at&t cfront 3.0 based
  34. compiler...
  35.  
  36. I guess I'll just have to live with the warnings.
  37.  
  38.     -Jody
  39.